<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery-1.12.4.js" ></script>
	<script type="text/javascript" src="js/bootstrap.min.js" ></script>
	<script type="text/javascript" src="js/plugins/uploadify/jquery.uploadify.min.js"></script>
	<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
	
	<script type="text/javascript">
			$(function(){
				
				$("#submitFileType").click(function(){
					$("#editForm").submit();
				});
			})
		</script>
<title>Insert title here</title>
</head>
<body>
	<div class="container">
			<div class="row">
				
				<!-- 功能页面 -->
				<div class="col-sm-9">
					
					<div class="row">
					  <form method="POST" action="/userFile_selectType" id="editForm">
					 <c:forEach items="${userFiles }" var="file">
					  <div class="col-sm-6 col-md-4">
					    <div class="thumbnail">
					      <img src="${file.image}" />
					      <div class="caption">
					        <p>
					        	<input type="hidden" name="id" value="${file.id}" />
					        	<select class="form-control" name="fileType" style="width: 180px" autocomplate="off">
									 <c:forEach items="${fileTypes }" var="type">
										<option value="${type.id}">${type.title}</option>
									</c:forEach>
								</select>
					        </p>
					      </div>
					    </div>
					  </div>
					 </c:forEach>
					  </form>
					</div>
					<div class="row">
						<button id="submitFileType" class="btn btn-success">确定提交</button>
					</div>
				</div>
			</div>
		</div>		
</body>
</html>